<p id="notice"><%= notice %></p>

<p>
  <b>Title:</b>
  <%= @vote.title %>
</p>

<p>
  <b>Subtitle:</b>
  <%= @vote.subtitle %>
</p>

<p>
  <b>Note:</b>
  <%= @vote.note %>
</p>

<ol>  
  <% for section in @vote.sections %>  
  <li><%= h section.title %>
  	  <ul>  
    <% for control_group in section.control_groups %>  
      <li><%= h control_group.name %>
          <ul>  
          <% for candidate in control_group.candidates %>  
            <li><%= h candidate.name %></li>  
          <% end %>  
          </ul>  
          <ul>  
          <% for org in control_group.orgs %>  
            <li><%= h org.fullname %></li>  
          <% end %>  
          </ul>  
          <ul>  
          <% for question in control_group.questions %>  
            <li><%= h question.text %></li>  
          <% end %>  
          </ul>  
      </li>  
    <% end %>  
  </ul>  
  </li>  
  <% end %>  
</ol>  


<%= link_to 'Edit', edit_vote_path(@vote) %> |
<%= link_to 'Back', votes_path %>
